//
//  ViewController.swift
//  oneios
//  做界面和代码联动练习。
//  Created by 张 on 2017/12/14.
//  Copyright © 2017年 张. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

        @IBAction func touch(_ sender: UIButton) {
        print("你点击我了！")
        let ac = UIAlertController(title: "提示！", message: "我是第一个app", preferredStyle: .alert)
        let btn = UIAlertAction(title: "ok", style: .default, handler: nil)

        ac.addAction(btn)

        self.present(ac, animated: true, completion: nil)


    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    
}

